]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Drop seat state check after grab
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Dec 2025 13:36:47 +0000 (14:36 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Jan 2026 16:28:44 +0000 (16:28 +0000)
Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>

js/ui/overview.js

index 9ca700b26fb5bcd03bbfaf5b652fab89ca650414..82f83f9229318349584ed2ed307f4f7704c0b74b 100644 (file)
@@ -466,12 +466,6 @@ export class Overview extends Signals.EventEmitter {
                 const grab = Main.pushModal(global.stage, {
                     actionMode: Shell.ActionMode.OVERVIEW,
                 });
-                if (grab.get_seat_state() !== Clutter.GrabState.ALL) {
-                    Main.popModal(grab);
-                    this.hide();
-                    return false;
-                }
-
                 this._grab = grab;
                 this._modal = true;
             }